<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<link href="css/baitiao.css" rel="stylesheet" type="text/css" />
<style>
.mytable {
	width: 100%;
	border-collapse: collapse;
	width: 800px;
}

.mytable tr {
	
}

.mytable td {
	text-align: center;
	height: 50px;
}

.mytable tr:nth-child(2n) {
	background-color: #F5F5F5;
}

.mytable tr:nth-child(2n-1) {
	background-color: #DCDCDC;
}
</style>
<meta charset="UTF-8">
<title>我的课表</title>
</head>
<body align="center"
	style="background-image: url(images/a.gif); background-size: 100%;">
	<%
        Object message = request.getAttribute("message");
        if (message != null && !"".equals(message)) {
    %>
	<script type="text/javascript">
              alert("<%=request.getAttribute("message")%>");
              var  asd=request.getAttribute("username");         
    </script>
	<%
        }
    %>


	<script type="text/javascript">
	function back(){
    	alert('退出成功');
    	location.href='index.jsp';
    	}
    </script>
	<div style="margin-top: 40px">
	</div>
	
		<h1 style="color: black;">信息更改</h1>
<%--         <form action="ContactServlet?method=editstu&xuehao=${item.xuehao}&xingming=${item.xingming}&xingbie=${item.xingbie}&banji=${item.banji}&zhuanye=${item.zhuanye}&password${item.password}&id=${item.id}" method="post" style="width:50%"> --%>
         <form action="Servlet?method=editstu" method="post" style="width:50%">
		<div
			style="border: 3px solid black; width: 800px; height: 480px; position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%);">
			
				<!-- forEach遍历出adminBeans -->
				
				<c:forEach items="${holds}" var="item" varStatus="status">
			<table class="mytable">
				<tr>学号<input type="text" placeholder="xuehao" name="xuehao" value = "${item.xuehao}">
            </tr>
         
            <tr>姓名<input type="text" placeholder="xingming" name="xingming" value = "${item.xingming}">
            </tr>
            <label>性别<input type="text" placeholder="xingbie" name="xingbie" value = "${item.xingbie}">
            </label>
            <label>班级<input type="text" placeholder="banji" name="banji" value = "${item.banji}">
            </label>
            <label>专业<input type="text" placeholder="zhuanye" name="zhuanye" value = "${item.zhuanye}">
            </label>
            <label>密码<input type="text" placeholder="password" name="password" value = "${item.password}">
            </label>
            <label>ID<input type="text" placeholder="id" name="id" value = "${item.id}">
            </label>
				</table>	
				</c:forEach>
		<tr>	<input type="submit"
						value="提  交"
						style="width: 100px; height: 32px; float: center; margin-right: 30px; font-size: 16px;" />
		</div>
			
<!-- 		<button -->
<!-- 			style=" width: 130px; height: 50px; font-size: 23px; color: red; position: center; bottom: 15%;transform: translate(-50%); " -->
<!-- 			onclick="location.href='index0.jsp'">返 回</button> -->
		</tr>
		</form>
</body>
</html>